package com.un.ebs.production.domain;

import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ProductionRequirementPlanExt)表实体类
 *
 * @author liubo
 * @since 2020-07-30 22:26:48
 */
@Data
@Component
@TableName("v_production_requirement_plan_ext")
@SuppressWarnings("serial")
public class ProductionRequirementPlanExt extends Model<ProductionRequirementPlanExt> {


    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "name_as", length = 100, precision = 0)
    private String nameAs;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "production_requirement_qty", length = 38, precision = 6)
    private Double productionRequirementQty;

    @DbField(name = "schedule_qty", length = 38, precision = 4)
    private Double scheduleQty;

    @DbField(name = "inventory_qty", length = 18, precision = 6)
    private Double inventoryQty;

    @DbField(name = "inventory_lock_by_in_qty", length = 18, precision = 6)
    private Double inventoryLockByInQty;

    @DbField(name = "inventory_lock_by_out_qty", length = 18, precision = 6)
    private Double inventoryLockByOutQty;

    @DbField(name = "purchase_plan_qty", length = 38, precision = 4)
    private Double purchasePlanQty;

    @DbField(name = "purchase_requirement_qty", length = 38, precision = 4)
    private Double purchaseRequirementQty;

    @DbField(name = "supply_count", length = -1, precision = 0)
    private Integer supplyCount;

    @DbField(name = "provider_ent_id", length = 40, precision = 0)
    private String providerEntId;

    @DbField(name = "provider_ent_name", length = 100, precision = 0)
    private String providerEntName;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;


}